import {
	http,
	Method
} from "@/utils/request.js";
import api from "@/config/api.js";

export function uploadGps(gPSdata, userId, activateId) {
	return http.request({
		url: `${api.my}/gps/createUserGPS`,
		method: Method.POST,
		data: {
			userId,
			activateId,
			gPSdata,
		}
	});
}


export function getHistoryRunData(userId, activateId) {
	return http.request({
		url: `${api.my}/gps/findUserGPSByUserId`,
		method: Method.GET,
		data: {
			userId,
			activateId
		}
	});
}